package Leetcode;

public class Leetcode_64 {
    public static int jiafa(int[] num1, int k) {
        int num2 = 0;
        for (int i = 0; i < num1.length; i++){
            num2 = num2 * 10 + num1[i];
        }
        num2 += k;
        return num2;
    }
    public static void main(String[] args) {
        int[] num1 = {2,7,4};
        int k = 181;
        System.out.println(jiafa(num1,k));
    }
}
